import request from '@/utils/request'

// 查询参展商列表
export function listExhibitors(query) {
  return request({
    url: '/mobile/exhibitors/list',
    method: 'get',
    params: query
  })
}

// 查询参展商详细
export function getExhibitors(id) {
  return request({
    url: '/mobile/exhibitors/' + id + '?openId=',
    method: 'get'
  })
}

// 新增参展商
export function addExhibitors(data) {
  return request({
    url: '/mobile/exhibitors',
    method: 'post',
    data: data
  })
}

// 修改参展商
export function updateExhibitors(data) {
  return request({
    url: '/mobile/exhibitors',
    method: 'put',
    data: data
  })
}

// 删除参展商
export function delExhibitors(id) {
  return request({
    url: '/mobile/exhibitors/' + id,
    method: 'delete'
  })
}
